package com.bwie.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/4/1 10:47
 */

@Configuration
public class KafkaConfig {

    public static final String TOPIC_NAME = "topic_check";

    @Bean
    public NewTopic topicCheck(){
        return new NewTopic(TOPIC_NAME, 1, (short) 1);
    }
}
